﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CodeGenerator.DBInfo.entity
{
    /// <summary>
    /// 数据表列信息
    /// </summary>
    public class ColumnInfo
    {
        /// <summary>
        /// 字段名
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 字段类型
        /// </summary>
        public string Type { get; set; }
        /// <summary>
        /// 是否主键
        /// </summary>
        public bool IsPrimaryKey { get; set; } = false;
        /// <summary>
        /// 允许空
        /// </summary>
        public bool IsAllowNull { get; set; } = true;
        /// <summary>
        /// 字段注释
        /// </summary>
        public string Comment { get; set; }
        /// <summary>
        /// 数字长度
        /// </summary>
        public int NumLength { get; set; }
        /// <summary>
        /// 小数位数
        /// </summary>
        public int NumScale { get; set; }
    }
}
